import request from '@/utils/request'

export function issuedAdd(data) {
  return request({
    url: '/system/demands/query',
    method: 'post',
    data,
  })
}
// 查询系统需求列表
export function issuedQueryList(data) {
  return request({
    url: '/system/demands/query',
    method: 'post',
    data,
  })
}
// 修改系统需求
export function updateSysDemandByOperator(data) {
  return request({
    url: '/system/demands/update',
    method: 'post',
    data,
  })
}

export function updateDemandStatus(data) {
  return request({
    url: '/system/demand/updateDemandStatus',
    method: 'put',
    data,
  })
}

export function updateDemand(data, id) {
  return request({
    url: `/system/demand/updateDemand/${ id }`,
    method: 'put',
    data,
  })
}
